const layout = () => import('layout/layout.vue')

// rights
const account = () => import('views/setting/rights/account/index.vue')
const department = () => import('views/setting/rights/department/index.vue')
const role = () => import('views/setting/rights/role/index.vue')

// give
const giveList = () => import('views/setting/give/list.vue')

export default {
    path:'/setting',
    redirect: '/setting/account-list',
    component:layout,
    children:[{
        path:'account-list',
        component:account,
        name:'setting-account-list',
        meta:{
            title:'子账号管理'
        }
    },{
        path:'department-list',
        component:department,
        name:'setting-department-list',
        meta:{
            title:'部门管理'
        }
    },{
        path:'role-list',
        component:role,
        name:'setting-role-list',
        meta:{
            title:'角色管理'
        }
    },{
        path:'give-list',
        component: giveList,
        name:'setting-give-list',
        meta:{
            title:'赠送分成设置'
        }
    }]
}